package scct.zhanghongbo.model;

import java.io.Serializable;

/**
 * 
 * TableName cr_overhaul
 */
public class Overhaul implements Serializable {
    /**
     * 文物编号
     */
    private Integer crId;

    /**
     * 上次时间
     */
    private Long timeBefore;

    /**
     * 下次时间
     */
    private Long timeNext;


    /**
     * 文物编号
     */
    public Integer getCrId() {
        return crId;
    }

    /**
     * 文物编号
     */
    public void setCrId(Integer crId) {
        this.crId = crId;
    }

    /**
     * 上次时间
     */
    public Long getTimeBefore() {
        return timeBefore;
    }

    /**
     * 上次时间
     */
    public void setTimeBefore(Long timeBefore) {
        this.timeBefore = timeBefore;
    }

    /**
     * 下次时间
     */
    public Long getTimeNext() {
        return timeNext;
    }

    /**
     * 下次时间
     */
    public void setTimeNext(Long timeNext) {
        this.timeNext = timeNext;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCrId() == null) ? 0 : getCrId().hashCode());
        result = prime * result + ((getTimeBefore() == null) ? 0 : getTimeBefore().hashCode());
        result = prime * result + ((getTimeNext() == null) ? 0 : getTimeNext().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", crId=").append(crId);
        sb.append(", timeBefore=").append(timeBefore);
        sb.append(", timeNext=").append(timeNext);
        sb.append("]");
        return sb.toString();
    }
}